package com.itheima.service;

import com.itheima.domain.Student;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author 王加鑫
 * @Date 2021/7/23 21:32
 * @Since JDK 1.9
 */
@Transactional
public interface StudentService {

    public void save(Student student);

    public void update(Student student);

    public void delete(Integer id);

    public Student findById(Integer id);

    public List<Student> findAll();

    public Student findByName(String name);
}
